#include <iostream>
#include <vector>
#include "solution167.h"
// TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
int main() {
    // TIP Press <shortcut actionId="RenameElement"/> when your caret is at the
    // <b>lang</b> variable name to see how CLion can help you rename it.
    solution167 sol;
    std::vector<int> numbers = {2, 7, 11, 15};
    int target = 9;

    std::vector<int> result = sol.twoSum(numbers, target); // 调用 twoSum 方法
    if (result.size() == 2) {
        std::cout << "Indices: " << result[0] << ", " << result[1] << std::endl;
    } else {
        std::cout << "No solution found." << std::endl;
    }
    return 0;
}

